package com.hong.collections.blocking;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @Auther: Administrator
 * @Date: 2018/8/10 17:23
 * @Description:
 */
public class ArrayBlockingQueueExample {
    /**
     * FIFO（先进先出）
     * @param size
     * @param <T>
     * @return
     */
    public <T> ArrayBlockingQueue<T> create(int size){
        return new ArrayBlockingQueue<>(size);
    }
}
